modified summation