speed up binning