working on top secret event detection code