this is the right max_dimension