modify cache method