Update hashmap&hashtable