bug fix in subgroup exclusion
improved validation check