using y_scale function