complete basic matching function