write to tab file