complete the definition of subprograms