adding cname in right place