transmitter code - to be tested w/ receiver