added check on next transmit