clipping for stokes