tester for loop2