for events clearing