getting all the binning right