write dpId