adding header to output and removing invalid matchups