separating out the code that handles subroutine section identification