added other f1_dtdm function