add functionality to permutations; bugfix in permutation-list