added rebin without under/overflow