parser for Train data