use noteid to replace the note