change deletion order