added get_upper_threshold/get_upper_thresholds()