start of while loop