fighting with accelerometer to fix camera bug