sorting contour vector by errors
compiling with serialization code