replace DDS's code