refactor dgr
Merge pull request #1 from Lee-W/master

refactor dgr