contour checking