updated transmitter.py