forming groups helps them detect the presence of predators