What is Subroutine?
a lesser part of a greater programming whole; a fixed sequence of steps within a program. see also routine function
The subroutines were correct; something else was wrong with the program.