add good path calculation