everything working now need to do something with battery and accelerometer