check if the right path