discrete edp working