added function to remove entry from hash