initialization for caching