reupload of bdm.java by anuhya