improved scaling