always take the shortest path