finished min max calc.