fix thresholds declarations