forgot to uncomment the cache hit function