added cases to getallcourses