added some code for dijkstra