rebuild all cards utils