write all at one shot