now you can chose if you want to print the table or optimize the route