csv to each line
restructured data into proper format