change the way delete works