debugged the courseController