add DME algorithm