setting hessian threshold