working flow for sym group by generator. not perfect...