adds course_id to model creation; fixes bug