found problem with the way ratio reformed for permutations