added permutation ability for cluster