making binning internal