changed traintype selection phase