binning added to bin_dimensions.c