end state printed to csv files