replace max_vel with max_Velocity