add max and remove print