applying hash table