done mostly,there is a problem with max_speed