update hashtable