clamping scale values elegantly