add judge the groups