added check for card counting