fixing code to properly parse attendees