add function declarations and accelerometer