implemented auto-generation of multiple sections