fix definition of findThresholdError