generate bins