revised isRarelyModified function

added support for nug31039