changed index calculation for bloom filter