Mechanism found to determine which memories last