detect motion changes.