issue #96 fix calculateSum