solving routing problem with show