moved compare to transmit