update a diary