added acceleration control