complete inverse matrix

change the reverse matrix t