primitives integrated for motion sensor