Reuploading BDM.java with closed phase