added TensorDerivativeNearDeg