add simple motion detection