started doing the while loop