fixed the range so that min is not 0.0