renamed gid to _cid