testing path function