fixed a bunch in receiver and transmitter