updating contours to included all contours