most functions working for the hash table