thanks everyone for attempting to help me, i did manage to work it all out i was missing a comand and the code i attempted to add to fix the problem was wrong.