Our good works do not generate righteousness.  Rather our righteousness in Christ generates good works.