CAMBRIDGE, Mass. (AP) — Harvard University’s freshman class will be invited to live on campus this fall, while most other undergraduates will be required to learn remotely from home.

University officials announced Monday that only 40% of undergraduates will be invited to campus in an effort to reduce density and prevent the spread of COVID-19.

All freshmen will be invited, along with some other students who face challenges learning from afar. All classes will be taught online, however, regardless of where students live.

In deciding which students to invite, Harvard President Lawrence Bacow said he “could not help but recognize the unique position that first-year students find themselves in, making the transition to college in these strange times.”