add max

please merge