rotation through while loop