modify hashtable free function