added MaxWen's S2W and DT2W