replace setScaleMagnitude with scale