added clamp, and ms to sec