Use clamp
Code style