hashmap's remove method completed