checking for loops, iteration 2