add transformation for display as a matrix
resolve merge conflict