fixed insert/remove hash table functions