updated how code handles drive speed