nit: We don't need extra space after `cardIndex`.