updated event detection