modify solutionCostCalculation internally