using the max value constant