change before deleting