conver map to hash_map