add functions to automatically generate a party