update to inverse matrix