add cname and change index