fixed bug now sums integers