setting up the "if statement for a while loop"