code to check the new xref approach.