clean up the code of hash_table