problem in bin_metallicity