2d sums