Yes, there is a better way. Try your loop idea and see what happens.

Why do most of your answers to questions 1 - 5 have incorrect capitalization?