first changes defined summation function