updated speed calc.