upgrade Jacobi method