finished while loop starting for loop