donut integration improved on contour algo