matrix in final