extracted matches into txt file