inverse matrix. devil error :(