use allTrains for init var