modify jacobian computing method