adding jaccard thresholding