added maxSpeed