tweak binning script