more efficient and shorter implementation of the start clamping