edit do while loop