stats and histograms return to zscores function