inverting matrix for the good
something
merge conflict fixed