demo program for matching
remove some debugging print