added gyro code