write scaler