fixed getSum function