write schedule