while loop edit