needed to let min value be negative. I should also allow negative max value, though I don't use that yet.