added to while loop