this line replaces the highcard function