remove dependency on NumericFuns