fix scaling to to use range of largest axis