delete old while loop