change residual scaling