update best path