shortening deck_gen function