it now writes csvs

got it to write the correct csvs!