adding cards works, better update code