write out csv file