modify define_event doc