update event loop