removed function for permutation based meta-analysis but updated the for loop to work with current function and speed it up