estimate threshold