minValue and maxValue now return an object