deletes while from ast