add remove method for hash map