changed cache method