DP: new tex

matrix modification once for all