finish domain part for train and test