remove max_dimension method for now, until a better algorithm is added