while loop change