replace bloom filter with a trie