fixed bootstrap and permutation