trie iteration