added ref to dijkstra