typo, separation of caching functions