added parameterization of contour lines