work on ai and main cards