this program is for hash table