Changes to minValue & maxValue

still dealing with dynamic allocation