handling misses in cache