adding in loop for events