caching working properly