first matrix operations
minor changes