trying to figure out wtf is wrong with this. also added courseData struct