modify3 scale function