include updated packet subroutine