updated max value to 1000