added a loop

Never do a computer's job yourself! :]