try new script for permutations