sum methods refactoring