Put the intersection of the bloomfilter in a function