Fixed my own misconception about format for clamping. Made a convenient default case