cleaned up contours