Those were the groups of the men who guarded the gates. They belonged to the family lines of Korah and Merari.