renamed to use TranCodec instead of TranType