initialized hessian to None in initialize