added variables to help decide what (sub)sections are unnecessary for an optimized edit