work on fixing errors of hash table