it was mainly used for the safekeeping of herds against predators