made DTW parallel