changed trie node interface