Update dd3.lua

Code Clean-Up