added event sub-delete function