updated check_thresholds call