separate the subroutine into another file