fixing the cardsshown method