writing an update