maxValue method add