commiting cache matrix