2d histograms calculated and printed correctly