adding updates to cachematrix