fixed path function