fetch in subroutine