change map to hashmap