update matrix module
edited the matrix 3 module