finish while loop part