first wait dijkstra(2point)