made threshold static in auto-maxiter criteria