add function getAdaptivePath