remove relic if/else in fetching course data