update function createDn