added dmtx formula for php54