handled dijkstra destination case