the imu read fuction fix