update basic driving code with acceleration adjustment