had + PP · before another past event
The past perfect describes an action that happened before another past action. It's the "past of the past".
Past perfect = earlier action · Past simple = later action