added freeHashTable