right before I add path function