took out courses.each in student view