refactor section to use cardList to store card