initial accelerometer sketch