Before modify cardBox format and index