added one card function