refining paths