added code to make contour