If students rank other courses higher and on other courses are free capacity, the students will matched  on his higher ranked course.