remove unnecessary check for flag.group