try the while loop