modify cache decorator