[Trie] started rewriting