simplify trie, and support delete unused storage