specialize of sum(x) when x is a number