function to see the path