code for lru