Title: Understanding the matching function