implemented jacobian add