iterate over each card