-add support for max value