change deletion conditions