accelerometers and gyroscopes implementation 1991995