add stuff to do while loop