outer contour taken into account