add data and outfile