centered cards
refactoring