some trie problems