add data to file