trying to fix the block permutations