simplify update_hashtable