updating cli and matrix operations