set update portion of code outside of imu code