setting to null in hashmap acts as remove()