added path elements to permutations