modularized write data