cleanup trie