end while loop