fixes to signal binning