parse cards