moved the code to check if a section is bad was refactored into a method