changes for deleting an item