You probably think of Volkswagen as a company that sells cars. However, now it looks like it will be buying them, too.

It is all part of Volkswagen's emissions cheating scandal. VW goes before a judge in San Francisco Thursday, and it is expected to say that it will agree to offer to buy back half a million 2-liter diesel VW Jetta and Golf and Audi A3 models in the United States.

Those who want to can keep the cars and have them fixed. Both keepers and sellers will also get cash compensation. Earlier Wednesday, a German newspaper said it would be $5,000 per customer, but sources briefed on the deal tell Automotive News no decisions on individual compensation have been made.

Regardless, the compensation on top of the buyback is expected to total at least $1 billion, and VW still will not be done. There is likely to be an environmental remediation fund the carmaker will have to pay into for the excess pollution their supposedly "Clean Diesel" cars have been putting out since 2009.