added acceleration calculations