variableGroup comparison method added