finished while loop