modify addEvent