now fitting to rebinned histograms