updated addevent