refactoring had a bug in LRU