adding hash table code