slight simplification of maxes