more templates for binning code