update motion detection