delete while loop