changed motion detector for event model