added memory clearing for event lists