upgrade hashmap