update treating matrix