added text to matching; fixed bug