word card refactored