updated note parsing