Differences in purposes of grouping between ants and elephants