disabled code for unused clipping method
fixed objects not being removed properly due to reference issues