refactoring
add for sums
optimized addition