removed apply_scaling