removed silly summation function