changes to cache storing