completed changecoursename() method