use get course helper function