declaration of menu and reshuffle of variables