course_detail a little more clean