edit cachmatrix