reordered scaling operation re: #43