working on the trie