switched group by and column