sum of sample