updates to transmitFunction