added mrf_tx function