change update method2. using OnUpdate and SendModEvent.