added clipping functionality