created basic structure for insertMatches