updated cache matrix