update the scaling