updating functions in cardMaker