implement  find contour