added Jacobi variable, unfinished