Updated cahcematrix