refactor deleted course