updated variable names in scaleBy