added the feature to output matched policies and their matched record numbers