added path function