scaleController refactor