write data t