how to parse card