allow only integer thresholds