use hash table to replace ktable