code to convert names from original courses.p