changing TrainState.positions format