updated note model