caching did not work as intended