testing the loop