reset min and max value