code mods for transmit side