improve shortest path