hashtable cleanup