create csv for analyses