correctly assemble paths