added ClearEvents method to IGenerateEvents