jacobian correction script