added function for removing an item