corrected prototype of jacobi