while loop operation