adding gyro code