Illegal migrants convicted and confined

Any illegal alien convicted of a crime in the US and confined to prison should have their origin country pay for the cost the state incurs while said convict is confined. They should also pay for any public defender fees and court costs accumulated