added methods to cache method