fix thresholds