check whether a note is modified