Applied the function to each column of data, obtained p-values
moved things around a bit