moved print statement before card is made