magnetometer calibration added