only invalidate if the section inset has changed
eliminated for loops in favor of functional methods where possible