conversion written and exposed for tsp representation