finish cache matrix