moving train piece into separate method