fix the copy/pasted code to work inside methods of the Participant class