before changes to contours