modified hashmap