made some changes in EKD.java