saving broken code. getPartyById isnt working