a new method to get EDF