transposed for text decoding - reference test and nit fix