updated participants function