updated calculations.