added mag and accel