added GROUP BY t2.a