add data tidying code (list to dataframe) to