consistent library min and max value