I couldn't find where `section` comes from? Is the second `@lines.index(section)` just never called?