simplify threshold