adding code to find subroutines