modify the track of each train