put back deletes in appropriate place