more trie code