almost final analysis but maxSpeed analysis should be done afterward