light modifications to plotting routine and histograms