paths merging