added a comment for the cache function