updating note structure