adding in block permutation