moved overlappingContour functions to Section class