collect values first before you sum them.