finish the first version of fdg