final matrix changes