change the way to delete a item