corrected manageLRU