Self-reference effect
The self-reference effect refers to the schematizing effect of the self-concept . People remember things better that are in some way related to their self-concept.
If people are at an event with a large number of strangers, they will later remember people better with whom they talked about personal things or things that are important to them. Likewise, after watching a film, we remember better characters who are similar to us or who are related to an event that means something to us.