fixed dijkstra even more