Useful scheme to understand the difference between past perfect and present perfect:

  • Past perfect
    alt text
  • Present perfect
    alt text