added back in sum 

added in back in the sum (was accidentally removed fixing #35)