add acceleration detection