contour equality works