replace name with cid