adjust caching method