add forEach function
update event