added CGSize.maxDimension