struggling with outer bound contour