change permute call in naive distributed