added minValue option