changing cname and index