added accelerometer and camera