same comment about handling potentially non-existent course_id here