with trie