the matrix multiplication of the "cm" operator was backwards