change matrix object