made changes to cachematrix file