more robust when finding course name