guard against negative inputs to scale, scale/xy