Second try for CSG optimalization