remove this before emitting the event.