cleaned up some hessian calculation bits