support for vector based sums and first order sums