refactor updatedCard