creating card generation script