formatting and histograms added