updated trie comparison