changed Integer. to int to be more general, can update cards now