use permutation when axis is 0