The estates of Bernie Madoff’s sons have agreed to fork over $23 million in ill-gotten gains from years of benefiting their dad’s Ponzi scheme, according to a joint announcement Tuesday by the court-appointed Madoff trustee and the Justice Department.

Mark Madoff, his widow Stephanie Mack, and Andrew Madoff have agreed to cough up the money as part of a deal hashed out with Irving Picard, the trustee responsible for recouping money for investors. Half the money will also go to the Madoff Victim Fund, which is run by the DOJ and has recovered $9 billion for victims.