comment main event loop more clearly