change tmpGroup to aTmpGroup