some progress in contour picking program