begin refactoring evalGroupByClause...