travelling salesman and fixing some numbering