removing dead code
fixing histograms