update Matrix