add max method and max event