added histograms, working