prepare to export table