add sum for math