added setMinMaxNoteId