fixing bugs in DN