update trend and accel data