using hashTable as well