added a first matching functionality