added a check in party to prevent a nullpointerexception