nested sums