According to biblical scholars, the shaving of hair, particularly of the "corners of the beard", was originally a mourning custom; the behaviour appears, from the Book of Jeremiah, to also have been practiced by other Semitic tribes, although some ancient manuscripts of the text read "live in remote places" rather than "clip the corners of their hair". Biblical scholars think that the regulations against shaving hair may be an attack on the practice of offering hair to the dead, which was performed in the belief that it would obtain protection in sheol; Nazirites shaved after contact with a corpse, captive women shaved after mourning the death of their parents, and the general prohibition in the Holiness Code is immediately followed by a rule against people cutting their own bodies for the benefit of the dead.