added clipping