add some codes of trie