modifed serTransmit file