updates hashtable