edit bestPathStarting