i got it to work i put it in a while loop