finish trie tree