clamp_01 functions added