use tabulate to locate merge paths