fised the scalings calculation so that actually works now