fixed 5 and -5 to 500 and -500 in maxValue