run on naive trie