check for cid