update dtw