refactors party spec