added simplified version of transmitter, fixed transmitter