fixing histograms csv output