finish export to csv