added getInvitations()