problem with creating the histograms