modify2 scale function