now updating note properly