prepare of matching