pattern of train