refactored to use options.sExclude as a condition statement