while loop, if statemnt