Before revision: The school is divided into subunits called "houses" and each student is allocated to one house at the moment of enrollment.
After revision: The school is divided into units called "houses" and each student is allocated to one house at the moment of enrollment.