fixed accelerometer orientation code