change scaleRatio method