rewrite the event