fixing debug function to deal with same input as tx_rf