check return value of invert_matrix()