I'm not sure you need to pass in both course and course_id - I'm pretty sure there are functions to get the course from the course_id