In the sentence When Andrew got home, he took a nap, the noun Andrew is the antecedent of the pronoun he. A pronoun should refer clearly to its antecedent.