implemented makeCard API