add flag for setting max value