updating the diary