adjusting thresholds