added dijkstra ways output