adding cachematrix