add accelerometer to detect shake