updated packet termination in transmit_cotroller