changed lengthProp to permutationProp