remove define_event