use more accurate thresholds