change party table to affiliation