writing update