moved add event to global