updates to gyro code