hessian matrix done