clipping written but not working yet