refactor writing no matching csv into a utility method