fix to rebin