added acelerometer sensor