group the emails