almost done write event