fix csv and excel output