rename cardid to cid for clarity