added opportunity to calculate sum