improved ConstructDS.java