adding complex event and stream event