add custom group by field