properly clamp some stuff