complite schemma generation
fix bins