deleting while loop