modified scaling out/in