added cumulative sums