contour comparison working